-- GENERATED SPELL FOR [Molten Giant] --


function spell0_11658(pUnit, Event) --@Knock Away,n/a--
pUnit:FullCastSpellOnTarget(18945,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11658', 620, 1)
end

function spell1_11658(pUnit, Event) --@Smash,Self--
pUnit:FullCastSpellOnTarget(18944,pUnit)
pUnit:RegisterEvent('Sorts_11658', 509, 1)
end

function Sorts_11658(pUnit, Event)
local choix_sorts_11658 = math.random(0, 1)
if choix_sorts_11658 == 0 then
pUnit:RegisterEvent('spell0_11658', 1, 1)
end
if choix_sorts_11658 == 1 then
pUnit:RegisterEvent('spell1_11658', 1, 1)
end
end

function mob11658_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11658', math.random(1500, 3000), 1)
end

function mob11658_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11658_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11658_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11658, 1, 'mob11658_Action')
RegisterUnitEvent(11658, 2, 'mob11658_Leave')
RegisterUnitEvent(11658, 3, 'mob11658_Kill')
RegisterUnitEvent(11658, 4, 'mob11658_Die')
